<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/8 0008
 * Time: 下午 6:07
 */

namespace ToolClass;

use Illuminate\Support\Facades\Mail;

class SendEmailClass
{
    public static function sendRegisterEmail($Email){
            $verifyCode = rand(10000,100000);
            Mail::send('mail.index', ['verifyCode' => $verifyCode], function ($message) use($Email) {
                $message->to($Email)->subject('欢迎注册Sakura');
            });
            return $verifyCode;
    }
}